<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<% 
String _basePath = request.getContextPath();
String ctx = request.getContextPath();

response.setContentType("application/vnd.ms-excel");
String filename = new String(("用户列表").getBytes(),"ISO-8859-1");
response.addHeader("Content-Disposition", "filename=" + filename + ".xls");
%>

<meta http-equiv="Content-Type" content="application/vnd.ms-excel; charset=utf-8" />
<table class="table-striped" border="1">
	<thead>
		<tr>
			<th width="90">姓名</th>
			<th width="120">账号</th>
			<th width="120">手机号码</th>
			<th width="200">组织机构</th>
			<th width="150">角色</th>
		</tr>
	</thead>
	<c:forEach var="item" items="${users}" varStatus="status">
	<tbody>
		<tr>
	    	<td>${item.name}</td>
	    	<td>${item.account}</td>
	    	<td>${item.mobile}</td>
	    	<td>${item.organName}</td>
	    	<td>${item.roleName}</td>
		</tr>
	</tbody>
	</c:forEach>
</table>
